Skip to content

MkTreeView

:fa-brands-github: Show source on GitHub

Node to display tree structures.

Description

Currently supports directories and Node subclasses (including MkNodes).

Example: Different styles

Jinja

{{ "src/mknodes/manual" | MkTreeView }}

Python

MkTreeView('src/mknodes/manual')
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
<div class="language-text highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>📂 `manual`
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>┣━━ 📂 `__pycache__`
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a>┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
</span><span id="__span-0-9"><a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
</span><span id="__span-0-10"><a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
</span><span id="__span-0-11"><a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
</span><span id="__span-0-13"><a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></a>┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
</span><span id="__span-0-14"><a id="__codelineno-0-14" name="__codelineno-0-14" href="#__codelineno-0-14"></a>┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
</span><span id="__span-0-15"><a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a>┣━━ 📂 `site`
</span><span id="__span-0-16"><a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a>┃   ┣━━ 📂 `__pycache__`
</span><span id="__span-0-17"><a id="__codelineno-0-17" name="__codelineno-0-17" href="#__codelineno-0-17"></a>┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
</span><span id="__span-0-18"><a id="__codelineno-0-18" name="__codelineno-0-18" href="#__codelineno-0-18"></a>┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
</span><span id="__span-0-19"><a id="__codelineno-0-19" name="__codelineno-0-19" href="#__codelineno-0-19"></a>┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
</span><span id="__span-0-20"><a id="__codelineno-0-20" name="__codelineno-0-20" href="#__codelineno-0-20"></a>┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
</span><span id="__span-0-21"><a id="__codelineno-0-21" name="__codelineno-0-21" href="#__codelineno-0-21"></a>┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
</span><span id="__span-0-22"><a id="__codelineno-0-22" name="__codelineno-0-22" href="#__codelineno-0-22"></a>┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
</span><span id="__span-0-23"><a id="__codelineno-0-23" name="__codelineno-0-23" href="#__codelineno-0-23"></a>┣━━ 🐍 `__init__.py (43 Bytes)`
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24" href="#__codelineno-0-24"></a>┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25" href="#__codelineno-0-25"></a>┣━━ 🐍 `api_section.py (7.0 kB)`
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a>┣━━ 🐍 `dev_section.py (840 Bytes)`
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a>┣━━ 🐍 `flavors.py (7.8 kB)`
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28" href="#__codelineno-0-28"></a>┣━━ 🐍 `get_started_section.py (1.8 kB)`
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29" href="#__codelineno-0-29"></a>┣━━ 🐍 `github_index.py (608 Bytes)`
</span><span id="__span-0-30"><a id="__codelineno-0-30" name="__codelineno-0-30" href="#__codelineno-0-30"></a>┣━━ 🐍 `navs_section.py (2.2 kB)`
</span><span id="__span-0-31"><a id="__codelineno-0-31" name="__codelineno-0-31" href="#__codelineno-0-31"></a>┣━━ 🐍 `nodes_section.py (4.5 kB)`
</span><span id="__span-0-32"><a id="__codelineno-0-32" name="__codelineno-0-32" href="#__codelineno-0-32"></a>┣━━ 🐍 `page_section.py (2.4 kB)`
</span><span id="__span-0-33"><a id="__codelineno-0-33" name="__codelineno-0-33" href="#__codelineno-0-33"></a>┣━━ 🐍 `root.py (1.4 kB)`
</span><span id="__span-0-34"><a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a>┣━━ 🐍 `routing.py (1.1 kB)`
</span><span id="__span-0-35"><a id="__codelineno-0-35" name="__codelineno-0-35" href="#__codelineno-0-35"></a>┣━━ 🐍 `standalone.py (1.4 kB)`
</span><span id="__span-0-36"><a id="__codelineno-0-36" name="__codelineno-0-36" href="#__codelineno-0-36"></a>┗━━ 🐍 `templating_section.py (1.7 kB)`
</span></code></pre></div>
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````

Example: Style 'ansi'

Jinja

{{ "src/mknodes/manual" | MkTreeView(style="ansi") }}

Python

MkTreeView('src/mknodes/manual', style='ansi')
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
<div class="language-text highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>📂 `manual`
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>┣━━ 📂 `__pycache__`
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a>┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
</span><span id="__span-0-9"><a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
</span><span id="__span-0-10"><a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
</span><span id="__span-0-11"><a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
</span><span id="__span-0-13"><a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></a>┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
</span><span id="__span-0-14"><a id="__codelineno-0-14" name="__codelineno-0-14" href="#__codelineno-0-14"></a>┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
</span><span id="__span-0-15"><a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a>┣━━ 📂 `site`
</span><span id="__span-0-16"><a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a>┃   ┣━━ 📂 `__pycache__`
</span><span id="__span-0-17"><a id="__codelineno-0-17" name="__codelineno-0-17" href="#__codelineno-0-17"></a>┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
</span><span id="__span-0-18"><a id="__codelineno-0-18" name="__codelineno-0-18" href="#__codelineno-0-18"></a>┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
</span><span id="__span-0-19"><a id="__codelineno-0-19" name="__codelineno-0-19" href="#__codelineno-0-19"></a>┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
</span><span id="__span-0-20"><a id="__codelineno-0-20" name="__codelineno-0-20" href="#__codelineno-0-20"></a>┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
</span><span id="__span-0-21"><a id="__codelineno-0-21" name="__codelineno-0-21" href="#__codelineno-0-21"></a>┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
</span><span id="__span-0-22"><a id="__codelineno-0-22" name="__codelineno-0-22" href="#__codelineno-0-22"></a>┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
</span><span id="__span-0-23"><a id="__codelineno-0-23" name="__codelineno-0-23" href="#__codelineno-0-23"></a>┣━━ 🐍 `__init__.py (43 Bytes)`
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24" href="#__codelineno-0-24"></a>┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25" href="#__codelineno-0-25"></a>┣━━ 🐍 `api_section.py (7.0 kB)`
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a>┣━━ 🐍 `dev_section.py (840 Bytes)`
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a>┣━━ 🐍 `flavors.py (7.8 kB)`
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28" href="#__codelineno-0-28"></a>┣━━ 🐍 `get_started_section.py (1.8 kB)`
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29" href="#__codelineno-0-29"></a>┣━━ 🐍 `github_index.py (608 Bytes)`
</span><span id="__span-0-30"><a id="__codelineno-0-30" name="__codelineno-0-30" href="#__codelineno-0-30"></a>┣━━ 🐍 `navs_section.py (2.2 kB)`
</span><span id="__span-0-31"><a id="__codelineno-0-31" name="__codelineno-0-31" href="#__codelineno-0-31"></a>┣━━ 🐍 `nodes_section.py (4.5 kB)`
</span><span id="__span-0-32"><a id="__codelineno-0-32" name="__codelineno-0-32" href="#__codelineno-0-32"></a>┣━━ 🐍 `page_section.py (2.4 kB)`
</span><span id="__span-0-33"><a id="__codelineno-0-33" name="__codelineno-0-33" href="#__codelineno-0-33"></a>┣━━ 🐍 `root.py (1.4 kB)`
</span><span id="__span-0-34"><a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a>┣━━ 🐍 `routing.py (1.1 kB)`
</span><span id="__span-0-35"><a id="__codelineno-0-35" name="__codelineno-0-35" href="#__codelineno-0-35"></a>┣━━ 🐍 `standalone.py (1.4 kB)`
</span><span id="__span-0-36"><a id="__codelineno-0-36" name="__codelineno-0-36" href="#__codelineno-0-36"></a>┗━━ 🐍 `templating_section.py (1.7 kB)`
</span></code></pre></div>
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````

Example: Style 'ascii'

Jinja

{{ "src/mknodes/manual" | MkTreeView(style="ascii") }}

Python

MkTreeView('src/mknodes/manual', style='ascii')
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
<div class="language-text highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>📂 `manual`
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>┣━━ 📂 `__pycache__`
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a>┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
</span><span id="__span-0-9"><a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
</span><span id="__span-0-10"><a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
</span><span id="__span-0-11"><a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
</span><span id="__span-0-13"><a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></a>┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
</span><span id="__span-0-14"><a id="__codelineno-0-14" name="__codelineno-0-14" href="#__codelineno-0-14"></a>┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
</span><span id="__span-0-15"><a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a>┣━━ 📂 `site`
</span><span id="__span-0-16"><a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a>┃   ┣━━ 📂 `__pycache__`
</span><span id="__span-0-17"><a id="__codelineno-0-17" name="__codelineno-0-17" href="#__codelineno-0-17"></a>┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
</span><span id="__span-0-18"><a id="__codelineno-0-18" name="__codelineno-0-18" href="#__codelineno-0-18"></a>┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
</span><span id="__span-0-19"><a id="__codelineno-0-19" name="__codelineno-0-19" href="#__codelineno-0-19"></a>┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
</span><span id="__span-0-20"><a id="__codelineno-0-20" name="__codelineno-0-20" href="#__codelineno-0-20"></a>┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
</span><span id="__span-0-21"><a id="__codelineno-0-21" name="__codelineno-0-21" href="#__codelineno-0-21"></a>┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
</span><span id="__span-0-22"><a id="__codelineno-0-22" name="__codelineno-0-22" href="#__codelineno-0-22"></a>┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
</span><span id="__span-0-23"><a id="__codelineno-0-23" name="__codelineno-0-23" href="#__codelineno-0-23"></a>┣━━ 🐍 `__init__.py (43 Bytes)`
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24" href="#__codelineno-0-24"></a>┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25" href="#__codelineno-0-25"></a>┣━━ 🐍 `api_section.py (7.0 kB)`
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a>┣━━ 🐍 `dev_section.py (840 Bytes)`
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a>┣━━ 🐍 `flavors.py (7.8 kB)`
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28" href="#__codelineno-0-28"></a>┣━━ 🐍 `get_started_section.py (1.8 kB)`
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29" href="#__codelineno-0-29"></a>┣━━ 🐍 `github_index.py (608 Bytes)`
</span><span id="__span-0-30"><a id="__codelineno-0-30" name="__codelineno-0-30" href="#__codelineno-0-30"></a>┣━━ 🐍 `navs_section.py (2.2 kB)`
</span><span id="__span-0-31"><a id="__codelineno-0-31" name="__codelineno-0-31" href="#__codelineno-0-31"></a>┣━━ 🐍 `nodes_section.py (4.5 kB)`
</span><span id="__span-0-32"><a id="__codelineno-0-32" name="__codelineno-0-32" href="#__codelineno-0-32"></a>┣━━ 🐍 `page_section.py (2.4 kB)`
</span><span id="__span-0-33"><a id="__codelineno-0-33" name="__codelineno-0-33" href="#__codelineno-0-33"></a>┣━━ 🐍 `root.py (1.4 kB)`
</span><span id="__span-0-34"><a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a>┣━━ 🐍 `routing.py (1.1 kB)`
</span><span id="__span-0-35"><a id="__codelineno-0-35" name="__codelineno-0-35" href="#__codelineno-0-35"></a>┣━━ 🐍 `standalone.py (1.4 kB)`
</span><span id="__span-0-36"><a id="__codelineno-0-36" name="__codelineno-0-36" href="#__codelineno-0-36"></a>┗━━ 🐍 `templating_section.py (1.7 kB)`
</span></code></pre></div>
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````

Example: Style 'rounded'

Jinja

{{ "src/mknodes/manual" | MkTreeView(style="rounded") }}

Python

MkTreeView('src/mknodes/manual')
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
<div class="language-text highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>📂 `manual`
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>┣━━ 📂 `__pycache__`
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a>┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
</span><span id="__span-0-9"><a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
</span><span id="__span-0-10"><a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
</span><span id="__span-0-11"><a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
</span><span id="__span-0-13"><a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></a>┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
</span><span id="__span-0-14"><a id="__codelineno-0-14" name="__codelineno-0-14" href="#__codelineno-0-14"></a>┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
</span><span id="__span-0-15"><a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a>┣━━ 📂 `site`
</span><span id="__span-0-16"><a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a>┃   ┣━━ 📂 `__pycache__`
</span><span id="__span-0-17"><a id="__codelineno-0-17" name="__codelineno-0-17" href="#__codelineno-0-17"></a>┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
</span><span id="__span-0-18"><a id="__codelineno-0-18" name="__codelineno-0-18" href="#__codelineno-0-18"></a>┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
</span><span id="__span-0-19"><a id="__codelineno-0-19" name="__codelineno-0-19" href="#__codelineno-0-19"></a>┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
</span><span id="__span-0-20"><a id="__codelineno-0-20" name="__codelineno-0-20" href="#__codelineno-0-20"></a>┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
</span><span id="__span-0-21"><a id="__codelineno-0-21" name="__codelineno-0-21" href="#__codelineno-0-21"></a>┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
</span><span id="__span-0-22"><a id="__codelineno-0-22" name="__codelineno-0-22" href="#__codelineno-0-22"></a>┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
</span><span id="__span-0-23"><a id="__codelineno-0-23" name="__codelineno-0-23" href="#__codelineno-0-23"></a>┣━━ 🐍 `__init__.py (43 Bytes)`
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24" href="#__codelineno-0-24"></a>┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25" href="#__codelineno-0-25"></a>┣━━ 🐍 `api_section.py (7.0 kB)`
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a>┣━━ 🐍 `dev_section.py (840 Bytes)`
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a>┣━━ 🐍 `flavors.py (7.8 kB)`
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28" href="#__codelineno-0-28"></a>┣━━ 🐍 `get_started_section.py (1.8 kB)`
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29" href="#__codelineno-0-29"></a>┣━━ 🐍 `github_index.py (608 Bytes)`
</span><span id="__span-0-30"><a id="__codelineno-0-30" name="__codelineno-0-30" href="#__codelineno-0-30"></a>┣━━ 🐍 `navs_section.py (2.2 kB)`
</span><span id="__span-0-31"><a id="__codelineno-0-31" name="__codelineno-0-31" href="#__codelineno-0-31"></a>┣━━ 🐍 `nodes_section.py (4.5 kB)`
</span><span id="__span-0-32"><a id="__codelineno-0-32" name="__codelineno-0-32" href="#__codelineno-0-32"></a>┣━━ 🐍 `page_section.py (2.4 kB)`
</span><span id="__span-0-33"><a id="__codelineno-0-33" name="__codelineno-0-33" href="#__codelineno-0-33"></a>┣━━ 🐍 `root.py (1.4 kB)`
</span><span id="__span-0-34"><a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a>┣━━ 🐍 `routing.py (1.1 kB)`
</span><span id="__span-0-35"><a id="__codelineno-0-35" name="__codelineno-0-35" href="#__codelineno-0-35"></a>┣━━ 🐍 `standalone.py (1.4 kB)`
</span><span id="__span-0-36"><a id="__codelineno-0-36" name="__codelineno-0-36" href="#__codelineno-0-36"></a>┗━━ 🐍 `templating_section.py (1.7 kB)`
</span></code></pre></div>
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````

Example: Style 'spaces'

Jinja

{{ "src/mknodes/manual" | MkTreeView(style="spaces") }}

Python

MkTreeView('src/mknodes/manual', style='spaces')
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````
<div class="language-text highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a>📂 `manual`
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a>┣━━ 📂 `__pycache__`
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a>┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a>┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a>┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a>┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a>┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a>┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
</span><span id="__span-0-9"><a id="__codelineno-0-9" name="__codelineno-0-9" href="#__codelineno-0-9"></a>┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
</span><span id="__span-0-10"><a id="__codelineno-0-10" name="__codelineno-0-10" href="#__codelineno-0-10"></a>┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
</span><span id="__span-0-11"><a id="__codelineno-0-11" name="__codelineno-0-11" href="#__codelineno-0-11"></a>┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
</span><span id="__span-0-12"><a id="__codelineno-0-12" name="__codelineno-0-12" href="#__codelineno-0-12"></a>┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
</span><span id="__span-0-13"><a id="__codelineno-0-13" name="__codelineno-0-13" href="#__codelineno-0-13"></a>┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
</span><span id="__span-0-14"><a id="__codelineno-0-14" name="__codelineno-0-14" href="#__codelineno-0-14"></a>┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
</span><span id="__span-0-15"><a id="__codelineno-0-15" name="__codelineno-0-15" href="#__codelineno-0-15"></a>┣━━ 📂 `site`
</span><span id="__span-0-16"><a id="__codelineno-0-16" name="__codelineno-0-16" href="#__codelineno-0-16"></a>┃   ┣━━ 📂 `__pycache__`
</span><span id="__span-0-17"><a id="__codelineno-0-17" name="__codelineno-0-17" href="#__codelineno-0-17"></a>┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
</span><span id="__span-0-18"><a id="__codelineno-0-18" name="__codelineno-0-18" href="#__codelineno-0-18"></a>┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
</span><span id="__span-0-19"><a id="__codelineno-0-19" name="__codelineno-0-19" href="#__codelineno-0-19"></a>┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
</span><span id="__span-0-20"><a id="__codelineno-0-20" name="__codelineno-0-20" href="#__codelineno-0-20"></a>┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
</span><span id="__span-0-21"><a id="__codelineno-0-21" name="__codelineno-0-21" href="#__codelineno-0-21"></a>┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
</span><span id="__span-0-22"><a id="__codelineno-0-22" name="__codelineno-0-22" href="#__codelineno-0-22"></a>┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
</span><span id="__span-0-23"><a id="__codelineno-0-23" name="__codelineno-0-23" href="#__codelineno-0-23"></a>┣━━ 🐍 `__init__.py (43 Bytes)`
</span><span id="__span-0-24"><a id="__codelineno-0-24" name="__codelineno-0-24" href="#__codelineno-0-24"></a>┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
</span><span id="__span-0-25"><a id="__codelineno-0-25" name="__codelineno-0-25" href="#__codelineno-0-25"></a>┣━━ 🐍 `api_section.py (7.0 kB)`
</span><span id="__span-0-26"><a id="__codelineno-0-26" name="__codelineno-0-26" href="#__codelineno-0-26"></a>┣━━ 🐍 `dev_section.py (840 Bytes)`
</span><span id="__span-0-27"><a id="__codelineno-0-27" name="__codelineno-0-27" href="#__codelineno-0-27"></a>┣━━ 🐍 `flavors.py (7.8 kB)`
</span><span id="__span-0-28"><a id="__codelineno-0-28" name="__codelineno-0-28" href="#__codelineno-0-28"></a>┣━━ 🐍 `get_started_section.py (1.8 kB)`
</span><span id="__span-0-29"><a id="__codelineno-0-29" name="__codelineno-0-29" href="#__codelineno-0-29"></a>┣━━ 🐍 `github_index.py (608 Bytes)`
</span><span id="__span-0-30"><a id="__codelineno-0-30" name="__codelineno-0-30" href="#__codelineno-0-30"></a>┣━━ 🐍 `navs_section.py (2.2 kB)`
</span><span id="__span-0-31"><a id="__codelineno-0-31" name="__codelineno-0-31" href="#__codelineno-0-31"></a>┣━━ 🐍 `nodes_section.py (4.5 kB)`
</span><span id="__span-0-32"><a id="__codelineno-0-32" name="__codelineno-0-32" href="#__codelineno-0-32"></a>┣━━ 🐍 `page_section.py (2.4 kB)`
</span><span id="__span-0-33"><a id="__codelineno-0-33" name="__codelineno-0-33" href="#__codelineno-0-33"></a>┣━━ 🐍 `root.py (1.4 kB)`
</span><span id="__span-0-34"><a id="__codelineno-0-34" name="__codelineno-0-34" href="#__codelineno-0-34"></a>┣━━ 🐍 `routing.py (1.1 kB)`
</span><span id="__span-0-35"><a id="__codelineno-0-35" name="__codelineno-0-35" href="#__codelineno-0-35"></a>┣━━ 🐍 `standalone.py (1.4 kB)`
</span><span id="__span-0-36"><a id="__codelineno-0-36" name="__codelineno-0-36" href="#__codelineno-0-36"></a>┗━━ 🐍 `templating_section.py (1.7 kB)`
</span></code></pre></div>
````
📂 `manual`
┣━━ 📂 `__pycache__`
┃   ┣━━ 📄 `__init__.cpython-314.pyc (214 Bytes)`
┃   ┣━━ 📄 `a_quick_tour.cpython-314.pyc (2.0 kB)`
┃   ┣━━ 📄 `api_section.cpython-314.pyc (9.7 kB)`
┃   ┣━━ 📄 `dev_section.cpython-314.pyc (3.4 kB)`
┃   ┣━━ 📄 `flavors.cpython-314.pyc (13.8 kB)`
┃   ┣━━ 📄 `get_started_section.cpython-314.pyc (4.4 kB)`
┃   ┣━━ 📄 `navs_section.cpython-314.pyc (4.8 kB)`
┃   ┣━━ 📄 `nodes_section.cpython-314.pyc (10.5 kB)`
┃   ┣━━ 📄 `page_section.cpython-314.pyc (6.3 kB)`
┃   ┣━━ 📄 `root.cpython-314.pyc (3.6 kB)`
┃   ┣━━ 📄 `routing.cpython-314.pyc (2.6 kB)`
┃   ┗━━ 📄 `templating_section.cpython-314.pyc (4.3 kB)`
┣━━ 📂 `site`
┃   ┣━━ 📂 `__pycache__`
┃   ┃   ┣━━ 📄 `__init__.cpython-314.pyc (3.1 kB)`
┃   ┃   ┣━━ 📄 `cli_section.cpython-314.pyc (3.3 kB)`
┃   ┃   ┗━━ 📄 `use_cases_section.cpython-314.pyc (1.7 kB)`
┃   ┣━━ 🐍 `__init__.py (1.2 kB)`
┃   ┣━━ 🐍 `cli_section.py (932 Bytes)`
┃   ┗━━ 🐍 `use_cases_section.py (549 Bytes)`
┣━━ 🐍 `__init__.py (43 Bytes)`
┣━━ 🐍 `a_quick_tour.py (5.8 kB)`
┣━━ 🐍 `api_section.py (7.0 kB)`
┣━━ 🐍 `dev_section.py (840 Bytes)`
┣━━ 🐍 `flavors.py (7.8 kB)`
┣━━ 🐍 `get_started_section.py (1.8 kB)`
┣━━ 🐍 `github_index.py (608 Bytes)`
┣━━ 🐍 `navs_section.py (2.2 kB)`
┣━━ 🐍 `nodes_section.py (4.5 kB)`
┣━━ 🐍 `page_section.py (2.4 kB)`
┣━━ 🐍 `root.py (1.4 kB)`
┣━━ 🐍 `routing.py (1.1 kB)`
┣━━ 🐍 `standalone.py (1.4 kB)`
┗━━ 🐍 `templating_section.py (1.7 kB)`
````

Bases: MkCode

__init__

__init__(
    tree: JoinablePathLike | MkNode,
    *,
    style: TreeStyleStr | tuple[str, str, str, str] = "rounded",
    maximum_depth: int | None = None,
    predicate: Callable[..., bool] | None = None,
    exclude_patterns: list[str] | str | None = None,
    include_patterns: list[str] | str | None = None,
    allowed_extensions: set[str] | list[str] | None = None,
    show_hidden: bool = False,
    show_size: bool = True,
    show_date: bool = False,
    show_permissions: bool = False,
    show_icons: bool = True,
    hide_empty: bool = False,
    sort_by: SortCriteria = "name",
    reverse_sort: bool = False,
    date_format: str = "%Y-%m-%d %H:%M:%S",
    **kwargs: Any
) -> None

Parameters:

Name Type Description Default
tree JoinablePathLike | MkNode

Tree to display. Can be a path to a folder or a Node.

required
style TreeStyleStr | tuple[str, str, str, str]

Print style. If tuple, parts are used for stems

'rounded'
maximum_depth int | None

Maximum nesting depth to print

None
predicate Callable[..., bool] | None

Predicate to filter results

None
exclude_patterns list[str] | str | None

Glob patterns to exclude (e.g., "*.pyc", "pycache")

None
include_patterns list[str] | str | None

Glob patterns to include (only matching files shown)

None
allowed_extensions set[str] | list[str] | None

Set/list of allowed file extensions (e.g., {".py", ".md"})

None
show_hidden bool

Whether to show hidden files/directories (starting with .)

False
show_size bool

Whether to show file sizes

True
show_date bool

Whether to show modification dates

False
show_permissions bool

Whether to show file permissions

False
show_icons bool

Whether to show icons for files/directories

True
hide_empty bool

Whether to hide empty directories after filtering

False
sort_by SortCriteria

Sort criteria - "name", "size", "date", or "type"

'name'
reverse_sort bool

Whether to reverse the sort order

False
date_format str

Format string for dates (when show_date=True)

'%Y-%m-%d %H:%M:%S'
kwargs Any

Keyword arguments passed to parent

{}
Name Children Inherits
MkCode
mknodes.basenodes.mkcode
Class representing a Code block.
graph TD
  3075081054["mktreeview.MkTreeView"]
  1761293797["mkcode.MkCode"]
  835538629["mkcontainer.MkContainer"]
  1956333208["mkcontainer.MkContainerBase"]
  1359323199["mknode.MkNode"]
  2751680898["builtins.object"]
  1761293797 --> 3075081054
  835538629 --> 1761293797
  1956333208 --> 835538629
  1359323199 --> 1956333208
  2751680898 --> 1359323199
/home/runner/work/mknodes/mknodes/src/mknodes/templatenodes/mktreeview/metadata.toml
[metadata]
icon = "mdi:file-tree-outline"
name = "MkTreeView"

[examples.regular]
title = "Different styles"
jinja = """
{{ "src/mknodes/manual" | MkTreeView }}
"""

[examples.ansi]
title = "Style 'ansi'"
jinja = """
{{ "src/mknodes/manual" | MkTreeView(style="ansi") }}
"""

[examples.ascii]
title = "Style 'ascii'"
jinja = """
{{ "src/mknodes/manual" | MkTreeView(style="ascii") }}
"""

[examples.rounded]
title = "Style 'rounded'"
jinja = """
{{ "src/mknodes/manual" | MkTreeView(style="rounded") }}
"""

[examples.spaces]
title = "Style 'spaces'"
jinja = """
{{ "src/mknodes/manual" | MkTreeView(style="spaces") }}
"""

# [examples.remote]
# title = "Files from a repote path"
# jinja = """
# {{ "github://" | MkTreeView(storage_options={"org": "mkdocstrings", "repo": "mkocstrings"}, maximum_depth=2) }}
# """
mknodes.templatenodes.mktreeview.MkTreeView
class MkTreeView(mkcode.MkCode):
    """Node to display tree structures.

    Currently supports directories and Node subclasses (including `MkNodes`).
    """

    ICON = "material/file-tree-outline"
    STATUS = "new"

    def __init__(
        self,
        tree: JoinablePathLike | mknode.MkNode,
        *,
        style: treestyles.TreeStyleStr | tuple[str, str, str, str] = "rounded",
        maximum_depth: int | None = None,
        predicate: Callable[..., bool] | None = None,
        exclude_patterns: list[str] | str | None = None,
        include_patterns: list[str] | str | None = None,
        allowed_extensions: set[str] | list[str] | None = None,
        show_hidden: bool = False,
        show_size: bool = True,
        show_date: bool = False,
        show_permissions: bool = False,
        show_icons: bool = True,
        hide_empty: bool = False,
        sort_by: SortCriteria = "name",
        reverse_sort: bool = False,
        date_format: str = "%Y-%m-%d %H:%M:%S",
        **kwargs: Any,
    ) -> None:
        """Constructor.

        Args:
            tree: Tree to display. Can be a path to a folder or a Node.
            style: Print style. If tuple, parts are used for stems
            maximum_depth: Maximum nesting depth to print
            predicate: Predicate to filter results
            exclude_patterns: Glob patterns to exclude (e.g., "*.pyc", "__pycache__")
            include_patterns: Glob patterns to include (only matching files shown)
            allowed_extensions: Set/list of allowed file extensions (e.g., {".py", ".md"})
            show_hidden: Whether to show hidden files/directories (starting with .)
            show_size: Whether to show file sizes
            show_date: Whether to show modification dates
            show_permissions: Whether to show file permissions
            show_icons: Whether to show icons for files/directories
            hide_empty: Whether to hide empty directories after filtering
            sort_by: Sort criteria - "name", "size", "date", or "type"
            reverse_sort: Whether to reverse the sort order
            date_format: Format string for dates (when show_date=True)
            kwargs: Keyword arguments passed to parent
        """
        super().__init__(language="", **kwargs)
        self.tree = tree
        self.style: treestyles.TreeStyleStr | tuple[str, str, str, str] = style
        self.predicate = predicate
        self.maximum_depth = maximum_depth
        self.exclude_patterns = (
            [exclude_patterns] if isinstance(exclude_patterns, str) else exclude_patterns
        )
        self.include_patterns = (
            [include_patterns] if isinstance(include_patterns, str) else include_patterns
        )
        self.allowed_extensions = (
            set(allowed_extensions) if isinstance(allowed_extensions, list) else allowed_extensions
        )
        self.show_hidden = show_hidden
        self.show_size = show_size
        self.show_date = show_date
        self.show_permissions = show_permissions
        self.show_icons = show_icons
        self.hide_empty = hide_empty
        self.sort_by: SortCriteria = sort_by
        self.reverse_sort = reverse_sort
        self.date_format = date_format

    def get_text(self) -> str:
        match self.tree:
            case str() | os.PathLike() | upath.UPath():
                # Convert exclude_patterns list to regex pattern
                exclude_pattern = None
                if self.exclude_patterns:
                    # Convert glob patterns to regex
                    patterns = []
                    for pattern in self.exclude_patterns:
                        # Convert glob wildcards to regex
                        # ** for recursive directories, * for any characters
                        regex_pattern = (
                            pattern
                            .replace(".", r"\.")
                            .replace("**", "DOUBLESTAR")
                            .replace("*", "[^/]*")
                            .replace("DOUBLESTAR", ".*")
                        )
                        patterns.append(regex_pattern)
                    # Combine all patterns with OR
                    combined = "|".join(f"({p})" for p in patterns)
                    exclude_pattern = re.compile(combined)

                # Convert include_patterns list to regex pattern
                include_pattern = None
                if self.include_patterns:
                    patterns = []
                    for pattern in self.include_patterns:
                        regex_pattern = (
                            pattern
                            .replace(".", r"\.")
                            .replace("**", "DOUBLESTAR")
                            .replace("*", "[^/]*")
                            .replace("DOUBLESTAR", ".*")
                        )
                        patterns.append(regex_pattern)
                    combined = "|".join(f"({p})" for p in patterns)
                    include_pattern = re.compile(combined)

                return filetree.get_directory_tree(
                    self.tree,
                    max_depth=self.maximum_depth,
                    show_hidden=self.show_hidden,
                    show_size=self.show_size,
                    show_date=self.show_date,
                    show_permissions=self.show_permissions,
                    show_icons=self.show_icons,
                    exclude_pattern=exclude_pattern,
                    include_pattern=include_pattern,
                    allowed_extensions=self.allowed_extensions,
                    hide_empty=self.hide_empty,
                    sort_criteria=self.sort_by,
                    reverse_sort=self.reverse_sort,
                    date_format=self.date_format,
                )
            case mknode.MkNode() as tree:
                return tree.get_tree_repr(style=self.style, max_depth=self.maximum_depth)
            case _:  # pyright: ignore[reportUnnecessaryComparison]
                raise TypeError(self.tree)